module Skit
  module Statsd
    class Initializer
      def self.run(environment)
        configuration = Configuration.new
        yield configuration if block_given?
        configuration.validate!

        Skit.stats = configuration.configure!(environment)
      end
    end
  end
end
